]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
power: Fix translations in the power section
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 5 Sep 2013 14:01:05 +0000 (10:01 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 5 Sep 2013 16:03:26 +0000 (12:03 -0400)
This technically isn't a string freeze break, since xgettext already
picked up the string and translators have been translating it.

https://bugzilla.gnome.org/show_bug.cgi?id=707557

js/ui/status/power.js

index 2994f099f5327571448597d8f91a96822f7b8971..ec1e9ae4eb0cd9ce0b38ba905dec3a7ced835320 100644 (file)
@@ -74,12 +74,12 @@ const Indicator = new Lang.Class({
 
         if (state == UPower.DeviceState.DISCHARGING) {
             // Translators: this is <hours>:<minutes> Remaining (<percentage>)
-            return _("%d\u2236%02d Remaining (%d%%)".format(hours, minutes, percentage));
+            return _("%d\u2236%02d Remaining (%d%%)").format(hours, minutes, percentage);
         }
 
         if (state == UPower.DeviceState.CHARGING) {
             // Translators: this is <hours>:<minutes> Until Full (<percentage>)
-            return _("%d\u2236%02d Until Full (%d%%)".format(hours, minutes, percentage));
+            return _("%d\u2236%02d Until Full (%d%%)").format(hours, minutes, percentage);
         }
 
         // state is one of PENDING_CHARGING, PENDING_DISCHARGING